sysctl: adjust XEN_SYSCTL_numainfo behavior
authorJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2015 16:05:02 +0000 (18:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2015 16:05:02 +0000 (18:05 +0200)
commite196ac7ab3f8fc690e9c91a6116136d33f41fee0
treedb2cbca0dabeaf32783356fd4f8b90963a12320b
parent05970d10bdeae6979b6ec053f9286a3d206acc50
sysctl: adjust XEN_SYSCTL_numainfo behavior

... to match XEN_SYSCTL_cputopoinfo, allowing the caller to get what it
needs (if e.g. it's after the data for just one specific node) with
just one hypercall, without caring about the total number of nodes in
the system.

Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/sysctl.c
xen/include/public/sysctl.h